package com.googlecode.smartbinding.framework.converter;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Converter for databinding.
 *
 * @author Iulian Dumitru
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Converter {

    /**
     * Source to target converter.
     *
     * @return source to target converter
     */
    Class<? extends IConverter> sourceToTarget();

    /**
     * Target to source converter.
     *
     * @return target to source converter
     */
    Class<? extends IConverter> targetToSource();

}
